import actionTypes from "../action/actionTypes";

export default function loadingReducer(preState=false,action){
  switch(action.type){
    case actionTypes.CHANGE_LOADING:
      return action.payload
    default: 
      return preState
  }
}